-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-101100: Document zlib
public constants to fix reference warnings
#139835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these constants intended to be for public use? Especially with older modules, the underscore prefix convention hasn't been consistently used.
C.f. calendar for similar discussion about what we choose to document.
A
zlib's functions have many options and often need to be used in a particular | ||
order. This documentation doesn't attempt to cover all of the permutations; | ||
consult the zlib manual at http://www.zlib.net/manual.html for authoritative | ||
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, bare links in source text are recognised by reST (unlike markdown), so this change is optional.
consult the `zlib manual <https://www.zlib.net/manual.html>`_ for authoritative | |
consult the `zlib manual <https://www.zlib.net/manual.html>`__ for authoritative |
See as they have references in the text (e.g., the compression levels), I would assume that was the intention. |
Co-authored-by: Hugo van Kemenade <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I just left a minor suggestion.
Thanks for the reviews Victor! |
Co-authored-by: Victor Stinner <[email protected]>
Thanks @StanFromIreland for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14. |
…rnings (pythonGH-139835) (cherry picked from commit c7f1da97eb4639a17fb01ef122155bab2f262a34) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Sorry, @StanFromIreland and @vstinner, I could not cleanly backport this to
|
GH-139910 is a backport of this pull request to the 3.14 branch. |
…arnings (GH-139835) (#139910) gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835) (cherry picked from commit c7f1da9) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
…rnings (python#139835) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]> (cherry picked from commit c7f1da9)
…ence warnings (pythonGH-139835) (cherry picked from commit c7f1da9) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
GH-139912 is a backport of this pull request to the 3.13 branch. |
…nings (GH-139835) (#139912) * gh-101100: Document `zlib` public constants to fix reference warnings (#139835) Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]> (cherry picked from commit c7f1da9) * [3.13] gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835) (cherry picked from commit c7f1da9) Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]> --------- Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Victor Stinner <[email protected]>
Also included, converting links to
https
and wrapping a long line.📚 Documentation preview 📚: https://cpython-previews--139835.org.readthedocs.build/